package com.xiaojf.xlog.configure.props;

import com.xiaojf.xlog.appender.console.AccessLogConsoleAppender;
import com.xiaojf.xlog.cons.AppenderType;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 访问日志，参数配置
 *
 * @author Ade.Xiao 2021/3/11 16:31
 */
@ConfigurationProperties(prefix = "xlog.access")
public class AccessLogProperties {
    /**
     * 记录日志方式，默认是console
     *
     * @see AccessLogConsoleAppender
     */
    private AppenderType appenderType;

    public AppenderType getAppenderType() {
        return appenderType;
    }

    public void setAppenderType(AppenderType appenderType) {
        this.appenderType = appenderType;
    }
}






